<?php

/**
 * personne actions.
 *
 * @package    TC5
 * @subpackage personne
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 12474 2008-10-31 10:41:27Z fabien $
 */
class personneComponents extends sfComponents
{
	public function executeConnection(sfWebRequest $request)
	{
		if($this->getUser()->isAuthenticated()){
			$this->connected=true;
			$this->username=$this->getUser()->getUsername();
			$this->personne_id=$this->getUser()->getUsername();
		} else {
			$this->connected=false;
		}
	}
}
